/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package obligcontenidowebcliente;

/*
import java.util.Properties;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;

import uy.edu.ort.arqsw.servicios.ContenidoWebBeanRemote;
import uy.edu.ort.arqsw.servicios.paginaWS;
*/

/**
 *
 * @author SG0892177
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        
        PaginaWS_Service pws = new PaginaWS_Service();
        PaginaWS port = pws.getPaginaWSPort();
        
        try{
            port.crearPaginaWeb1("201206101000");    
        } catch(Exception e) {
            // log.error("ERROR en paginas web");
        }
        
        
/*      Prueba del EJB
        Properties props = new Properties();
        props.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.enterprise.naming.SerialInitContextFactory");
        props.put(Context.PROVIDER_URL, "jnp://localhost:3700");
        try {
            InitialContext ctx = new InitialContext(props);
            ContenidoWebBeanRemote ejbRef = (ContenidoWebBeanRemote) ctx.lookup(
                    "java:global/obligContenidoWeb/obligContenidoWeb-ejb/ContenidoWebBean");
           
            ejbRef.crearPaginaWeb("pag2");
            
            //long id = ejbRef.crearPersona(12345679, "Juan", "Perez", new Date());
            //ejbRef.actualizarNombre(id, "Julio");
        } catch (NamingException ex) {
            Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
        }
        * 
        */
    }
    
    

    }
